@import "./themes/dark.scss";
@import "./themes/light.scss";

$themes: (
  light: $light,
  dark: $dark
);

//遍历主题map
@mixin setThemes {
  @each $theme-name, $theme-map in $themes {
    $theme-map: $theme-map !global;
    [data-theme="#{$theme-name}"] & {
      @content;
    }
  }
}

@function var($key) {
  @return map-get($theme-map, $key);
}


